module.exports = {
  nav_name: '商会管理', //生成导航菜单
  module_name: 'business_association_manager',  //生成路径，与模块名相同
  api: `{
    page: commonPath + "/admin/memberCompany/pageList", // 分页
    detail: commonPath + '/admin/memberCompany/get', //详情,
    add: commonPath + '/admin/memberCompany/save', //添加
    edit: commonPath + "/admin/memberCompany/edit", //编辑
    del: commonPath + "/admin/memberCompany/remove", //删除
  }`,

  table: {
    nav_name: "会员企业",
    tipsText: "商会管理 >> 会员企业",
    //获取列表页面
    tableData: [
      { title: '序号', name: 'index', type: "normal" },
      { 
        title: '企业商标', 
        name: 'companyLogo', 
        type: "img",   
        heightVal: "60", 
        widthVal: "100",
      },
      { title: '企业名称', name: 'companyName', type: "normal", showObj: "{}" },
      { title: '发布时间', name: 'gmtModified', type: "normal", showObj: "{}" },
    ],
    tableOpt: [
      {
        type: "modify",
        text: "编辑",
        request: false,
        jump: "/business_association_manager_add_page"
      },
      {
        type: "del",
        text: "删除",
        request: true,
        url: "API.business_association_manager.del",
        requestType: 'get',
      },
    ],
    search: {
      contentArr: {
        input1: { 
          labelName: '企业名称', 
          inputName: 'companyName' 
        },
        date1: {
          labelName: '发布时间',
          inputName: 'publishTime',
          dateConfig: {
            startDateName: 'startDate',
            endDateName: 'endDate',
            dateChangeMethodsName: 'handlePublishDateChange'
          }
        },
      },
      searchBtn: {
        text: "查询", //链接与table请求接口相同，不做另外配置
      },
      addBtn: {
        //搜索栏具有添加功能按钮时，设置此字段
        type: "add",
        text: "添加",
        request: false,
        jump: "/business_association_manager_add_page"
      }
    },
  },


  //添加页面
  add_page: {
    tipsText: "会员企业 >> 企业",
    formData: {
      titleText: "请填写企业相关信息",
      //三种类型，输入，下拉，图片上传
      input1: {
        labelName: '企业名称',
        inputName: 'companyName',
        isNeed: 'true',
      },
      //图片上传
      uploadImg1: {
        labelName: "企业logo图",
        inputName: "companyLogo",
        type: "many", //type: "single"
        countLimit: "1",
        uploadMethod: "handleUploadLogo",
        isNeed: 'true',
      },
      //富文本组件 富文本组件添加默认背景
      richText1: {
        labelName: '企业详情',
        inputName: 'companyRemark',
        minHeight: "180", //高度
        uploadApi: "API.common.upload",
        editContentChangeMethodName: "handleBgEditChange", //改变方法
        isNeed: 'true',
      },
    },
    addBtn: {
      text: '添加',
      url: "API.business_association_manager.add"
    }, //
    editBtn: {
      text: '编辑',
      detailUrl: "API.business_association_manager.detail",
      editUrl: "API.business_association_manager.edit",
      jump: '/business_association_manager_table',
      isSplitSearchString: 'true', //列表拼接查询字符
    },
    cancelBtn: { text: "取消" }, //
  },

  // //详情页面
  // detail_page: {

  // }
}
